package pack0708.com;

import org.w3c.dom.ls.LSOutput;

import java.util.ArrayList;
import java.util.List;

public class Test2 {
    public static void main(String[] args) {
        List<String> list=new ArrayList<>();

        list.add("aaaaaaaaaaa");
        list.add("bbb");
        list.add("hfhhhh");
        list.add("jfd");

//        list.stream().forEach(System.out::println);   //方法引用

        for (String s : list) {
            System.out.println(s);
        }
    }
}
